home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / bsf.jar / com / ibm / bsf / BSFException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-09-24  |  1.0 KB  |  35 lines

  1. package com.ibm.bsf;
  2.  
  3. public class BSFException extends Exception {
  4.    public static int REASON_INVALID_ARGUMENT;
  5.    public static int REASON_IO_ERROR = 10;
  6.    public static int REASON_UNKNOWN_LANGUAGE = 20;
  7.    public static int REASON_EXECUTION_ERROR = 100;
  8.    public static int REASON_UNSUPPORTED_FEATURE = 499;
  9.    public static int REASON_OTHER_ERROR = 500;
  10.    int reason;
  11.    Throwable targetThrowable;
  12.  
  13.    public BSFException(int var1, String var2) {
  14.       super(var2);
  15.       this.reason = var1;
  16.    }
  17.  
  18.    public BSFException(int var1, String var2, Throwable var3) {
  19.       this(var1, var2);
  20.       this.targetThrowable = var3;
  21.    }
  22.  
  23.    public BSFException(String var1) {
  24.       this(REASON_OTHER_ERROR, var1);
  25.    }
  26.  
  27.    public int getReason() {
  28.       return this.reason;
  29.    }
  30.  
  31.    public Throwable getTargetException() {
  32.       return this.targetThrowable;
  33.    }
  34. }
  35.